<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Mall_idcard.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields" :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from '@/extension/mall/Mall_idcard.js'
import ViewGrid from '@/components/basic/ViewGrid.vue'
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: 'id',
        footer: 'Foots',
        cnName: '身份证信息',
        name: 'Mall_idcard',
        url: '/Idcards/',
        sortName: 'createDate',
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: { idcardName: '' },
      searchFormOptions: [
        [
          { title: '姓名', field: 'idcardName', type: 'like' },
          { title: '身份证号', field: 'idNumber', type: 'like' },
        ],
      ],
      columns: [
        { field: 'supplierCode', title: '供应商编码', type: 'string', bind: { key: 'mall_supplier', data: [] }, width: 220, align: 'left' },
        { field: 'idcardName', title: '姓名', type: 'string', width: 220, align: 'left' },
        { field: 'sex', title: '性别', type: 'string', width: 220, align: 'left' },
        { field: 'idNumber', title: '身份证号', type: 'string', width: 220, align: 'left' },
        { field: 'nationality', title: '民族', type: 'string', width: 220, align: 'left' },
        { field: 'photo', title: '照片', type: 'img', width: 220, align: 'left' },
        { field: 'address', title: '地址', type: 'string', width: 220, align: 'left', sortable: true },
        { field: 'cardID', title: 'cardID', type: 'string', width: 220, align: 'left' },
        { field: 'datebirth', title: '出生日期', type: 'datetime', width: 90, align: 'left', sortable: true },
        { field: 'endDate', title: '有效结束时间', type: 'datetime', width: 90, align: 'left', sortable: true },
        { field: 'startDate', title: '有效开始时间', type: 'datetime', width: 90, align: 'left', sortable: true },
        //{field:'id',title:'身份证表',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
        //{field:'idcardCode',title:'编码（身份证表）',type:'string',width:220,align:'left'},
        { field: 'issuingAuthority', title: '签发机关', type: 'string', width: 220, align: 'left' },
        { field: 'sAMTD', title: 'sAMTD', type: 'string', width: 220, align: 'left' },
        // {field:'createDate',title:'创建时间',type:'datetime',width:90,align:'left',sortable:true},
        // {field:'createID',title:'创建人ID',type:'int',width:90,hidden:true,align:'left'},
        // {field:'creator',title:'创建人',type:'string',width:180,align:'left'},
        // {field:'modifier',title:'修改人',type:'string',width:180,align:'left'},
        // {field:'modifyDate',title:'修改时间',type:'datetime',width:90,align:'left',sortable:true},
        //{field:'modifyID',title:'修改人ID',type:'int',width:90,hidden:true,align:'left'},
        //    {field:'spare1',title:'扩展字段1',type:'string',width:220,align:'left'},
        //    {field:'spare2',title:'扩展字段1',type:'string',width:220,align:'left'},
        //    {field:'spare3',title:'扩展字段1',type:'string',width:220,align:'left'},
        //    {field:'spare4',title:'扩展字段1',type:'string',width:220,align:'left'},
        //    {field:'spare5',title:'扩展字段1',type:'string',width:220,align:'left'},
      ],
      detail: {
        cnName: '#detailCnName',
        columns: [],
        sortName: '',
        key: '',
      },
    }
  },
}
export default vueParam
</script>
